<template>
  <div class="manager-list"> 
    <tx-tab :tabs="page" />
  </div>
</template>

<script>
 
// import BNCS from "./list/bncs.vue"; 
import DEFAULT from "./list/default.vue"; 


const PAGES={ 
  "1000000014":{  
      active: "gzct",   
      hideHeader: true,
      list:[
        { 
          label: "x", name: "gzct", 
          listController: "OrgController",
          updateController: "AdminController",
          newController: "AdminController",
          deleteController: "OrgController",
          sortController: "OrgController",
          component: DEFAULT, 
          dict: {name:"避难场所"}, 
          props: {  } , 
          columns: ["name","bncsSourceType", "orgName", "job", "phone"] ,
          fields: ["name","sourceType", "orgName", "job", "phone"] 
        }
      ]
  },
  "1000000010":{  
      active: "jydw",   
      hideHeader: true,
      list:[
        { 
          label: "x", name: "jydw", 
          listController: "OrgController",
          updateController: "AdminController",
          newController: "AdminController",
          deleteController: "OrgController",
          sortController: "OrgController",
          component: DEFAULT, 
          dict: {name:"救援队伍"}, 
          props: { } , 
          columns: ["jydwOrgName", "jydwName","jydwSourceType","jydwSourceLevel", "jydwMajorDuties","jydwSecondaryDuties","jydwJob", "jydwPhone"] ,
          fields: ["orgName","name","sourceType","sourceLevel","majorDuties","secondaryDuties","job", "phone"] 
        }
      ]
  },
  "1000000011":{  
      active: "yjwz",   
      hideHeader: true,
      list:[
        { 
          label: "x", name: "yjwz", 
          listController: "OrgController",
          updateController: "AdminController",
          newController: "AdminController",
          deleteController: "OrgController",
          sortController: "OrgController",
          component: DEFAULT, 
          dict: {name:"应急物资库"}, 
          props: { } , 
          columns: ["jydwName","yjwzbSourceType" , "jydwOrgName", "jydwJob", "jydwPhone"] ,
          fields: ["name","sourceType","sourceLevel", "orgName", "job", "phone"] 
        }
      ]
  },
  "1000000012":{  
      active: "fhmb",   
      hideHeader: true,
      list:[
        { 
          label: "x", name: "fhmb", 
          listController: "OrgController",
          updateController: "AdminController",
          newController: "AdminController",
          deleteController: "OrgController",
          sortController: "OrgController",
          component: DEFAULT, 
          dict: {name:"防护目标"}, 
          props: { } , 
          columns: ["name","fhmbSourceType" , "orgName", "job", "phone"] ,
          fields: ["name","sourceType" , "orgName", "job", "phone"] 
        }
      ]
  },
  "1000000008":{  
      active: "sydw",   
      hideHeader: true,
      list:[
        { 
          label: "x", name: "sydw", 
          listController: "OrgController",
          updateController: "AdminController",
          newController: "AdminController",
          deleteController: "OrgController",
          sortController: "OrgController",
          component: DEFAULT, 
          dict: {name:"事业单位"}, 
          props: { } , 
          columns: ["name" , "orgName", "job", "phone"] ,
          fields: ["name" , "orgName", "job", "phone"] 
        }
      ]
  },
  "1000000013":{  
      active: "zjk",   
      hideHeader: true,
      list:[
        { 
          label: "x", name: "zjk", 
          listController: "UserController",
          updateController: "UserController",
          newController: "UserController",
          deleteController: "UserController",
          sortController: "UserController",
          component: DEFAULT, 
          dict: {name:"专家"}, 
          props: { } , 
          columns: ["expertName","expertSourceType","expertPhone","expertWorkUnit","expertOrgAddress","expertUserLevel","expertJobLevel","expertJob","expertDesc"] ,
          fields: ["name" , "sourceType", "phone", "workUnit","officeAddress","userLevel","jobLevel","job", "desc"]  
        }
      ]
  }
}


export default {
  data() {
    return {
      page: {
        active: "",
        hideHeader: true,
        list: []
      }, 
    };
  },
 created() {
    
 },
  mounted() {
    console.log('menuId', this.getParameter("menuId"))
    this.page=PAGES[this.getParameter("menuId")]
  },
  methods: {

  }
};
</script>


<style lang="scss">
.manager-list {
    position: relative;
    border: 2px solid $c-bd-content;
    padding: 15px;
    min-height: calc(100% - 48px) ;
    height: calc(100% - 48px) ;
    .el-tabs__item {
         padding: 0 5px;
        .tx-tab__label{
            color: #fff;
            min-width: 80px;
            max-width: 300px; 
            padding: 0px 20px;
        }
    }
    .el-tabs__item.is-active {
        .tx-tab__label{ 
            box-shadow: inset 0px 0px 10px $tx-color-primary; 
            // background: #285584;
        }
    }

}
</style>


